# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=barq
pkgver=35.6f1a68c
pkgrel=8
pkgdesc='An AWS Cloud Post Exploitation framework.'
arch=('any')
groups=('blackarch' 'blackarch-exploitation' 'blackarch-backdoor'
        'blackarch-automation' 'blackarch-recon')
url='https://github.com/Voulnet/barq'
license=('MIT')
depends=('python' 'python-clint' 'python-prettytable' 'python-pygments'
         'python-boto3')
makedepends=('git')
source=("git+https://github.com/Voulnet/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md *.png
  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}

